package com.haruhinav.controller;

import com.haruhinav.entity.AnimeCard;
import com.haruhinav.entity.DefaultFace;
import com.haruhinav.mapper.OtherMapper;
import com.haruhinav.service.OtherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/other")
public class OtherController {
    @Resource
    private OtherService otherService;
//    6条动漫卡片
    @GetMapping("/a/animecard/list")
    public List<AnimeCard> queryOrderByindex(){
        return otherService.queryTopSixAnimeCard();
    }



}
